package com.hjl.share;

import jakarta.servlet.ServletContext;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author ServivE
 * @version 0.1
 * @className ShareController
 * @description 共享域对象的获取
 * @date 2024/8/12 20:44
 * @since jdk11
 */
@Controller
@RequestMapping("share")
@ResponseBody
public class ShareController {
    //原生api
    @Autowired
    private ServletContext servletContext;
    @GetMapping("data")
    public void data(HttpServletRequest request, HttpSession session) {
        //直接使用操作
    }
}
